#include "Rotate.h"

Rotate::Rotate( string axis, float angle )
{
	this->axis[0]=this->axis[1]=this->axis[2]=0;

	if(axis == "x")
		this->axis[0]= 1;

	else if(axis == "y")
		this->axis[1]= 1;

	else
		this->axis[2]= 1;

	this->angle=angle;
}

void Rotate::act()
{
	glRotatef(angle,axis[0],axis[1],axis[2]);
}
